include ../Makefile.drivers_common

USEMODULE += adc081c
USEMODULE += xtimer

# set alert parameters in case they are undefined
TEST_ADCXX1C_LOW_LIMIT     ?= 90
TEST_ADCXX1C_HIGH_LIMIT    ?= 130
TEST_ADCXX1C_HYSTERESIS    ?= 10
TEST_ADCXX1C_CYCLE_TIME    ?= ADCXX1C_CYCLE_32

# export parameters
CFLAGS += -DADCXX1C_PARAM_LOW_LIMIT=$(TEST_ADCXX1C_LOW_LIMIT)
CFLAGS += -DADCXX1C_PARAM_HIGH_LIMIT=$(TEST_ADCXX1C_HIGH_LIMIT)
CFLAGS += -DADCXX1C_PARAM_HYSTERESIS=$(TEST_ADCXX1C_HYSTERESIS)
CFLAGS += -DADCXX1C_PARAM_CYCLES=$(TEST_ADCXX1C_CYCLE_TIME)

include $(RIOTBASE)/Makefile.include
